package com.tsd.base.service;

import com.tsd.base.entity.BaseExpressOrgExt;
import com.tsd.base.entity.BaseExpressOrgItem;
import com.tsd.base.entity.BaseExpressOrgItemExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUserExt;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseExpressOrgItem服务实现层接口
 *
 * @author Hillpool
 * @date 2021/04/15 11:17:56
 */
public interface BaseExpressOrgItemService {

    /**
     * 描述：根据id获取BaseExpressOrgItem
     *
     * @param id
     */
    BaseExpressOrgItem getBaseExpressOrgItemById(Long id) throws Exception;

    /**
     * 描述：根据sid获取BaseExpressOrgItem
     *
     * @param sid
     */
    BaseExpressOrgItemExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据id删除BaseExpressOrgItem
     *
     * @param id
     */
    void deleteBaseExpressOrgItem(Long id, SysUserExt opUser) throws Exception;

    /**
     * 描述：保存或更新BaseExpressOrgItem
     *
     * @param record
     * @param opUser
     */
    void saveBaseExpressOrgItem(BaseExpressOrgItemExt record, SysUserExt opUser) throws Exception;

    void saveBaseExpressOrgItem(BaseExpressOrgExt record, SysUserExt opUser) throws Exception;

    /**
     * 描述：根据params分页查询BaseExpressOrgItem
     *
     * @param params
     * @param page
     */
    List<BaseExpressOrgItemExt> findBaseExpressOrgItems(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询BaseExpressOrgItem
     *
     * @param params
     */
    List<BaseExpressOrgItemExt> findBaseExpressOrgItems(Map<String, Object> params) throws Exception;

    List<BaseExpressOrgItemExt> queryByEntity(BaseExpressOrgItemExt params) throws Exception;
}
